package com.ymatou.iapi.productprice.service;

import java.util.ArrayList;
import java.util.List;

import com.ymttest.utils.FileUtil;

public class Test {
	public static void main(String[] args)  {
		String a="ddddddddd 属性值个数比较";
		boolean aa = a.contains("属性值个数比较");
		
		
		List<String> ret=FileUtil.readFileAsLine("D:\\diff.txt");
		List<String> productList = new ArrayList<>();

		for (int i=0;i<ret.size();i++){
			if (ret.get(i).contains("属性值个数")){
				System.out.println(1);
				productList.add(ret.get(i).split(",")[2].split(":")[1]);
			}
		}

		
		
		FileUtil.writeAsLine("D:\\prod.txt", productList);
	}
}
